package com.xinke;


import com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration;
import com.xinke.service.TOroTollgrantryactionService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;


//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
//@Configuration
//@ComponentScan("com.xinke")
//@Import({DataSourceConfig.class, SourceDbConfig.class, TargetDbConfig.class})
@SpringBootApplication(exclude = MybatisPlusAutoConfiguration.class)
//@EnableScheduling//开启任务支持
@EnableTransactionManagement
public class Main {
    public static void main(String[] args) {
        /*AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Main.class);
        TOroTollgrantryactionService tollgrantry = context.getBean(TOroTollgrantryactionService.class);
        tollgrantry.updateDate();
        context.close();*/
        SpringApplication.run(Main.class, args);
    }
}